﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Header.ascx.cs" Inherits="Job.Web.userControls.Public.Header" %>


<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function addBookmark(title,url) {
    if (window.sidebar) { 
        window.sidebar.addPanel(title, url,""); 
    } else if( document.all ) {
        window.external.AddFavorite( url, title);
    } else if( window.opera && window.print ) {
        return true;
    }
}

//-->
</script>

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="text" align="center">
  <tr>
    <td height="81" >&nbsp;</td>
    <td width="90" ><table width="90" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="230" height="81" rowspan="2" align="left"><img src="/images/top_02.gif" width="230" height="81" /></td>
        <td width="760" height="35"><table width="760" border="0" cellspacing="0" cellpadding="0" class="toptext">
            <tr>
              <td height="34" align="left">
                    <span class="toptext2">深圳</span><span class="text1"> | 
                        <a href="Information.aspx" class="a1">苏州</a> | 
                        <a href="Information.aspx" class="a1">上海</a> | 
                        <a href="Information.aspx" class="a1">北京</a></span></td>
              <td width="129">
                <a href="#" class="a1" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://wyhrm.com');">设为首页</a>
                 | 
                 <a href="#" onclick="javascript:addBookmark('无忧才智','http://www.wyhrm.com/')" class="a1">加为收藏</a></td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="760" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="15"><img src="/images/top_1.gif" width="15" height="29" align="absmiddle" /></td>
            <td background="/images/top_5.gif" bgcolor="6898d8"><table width="700" border="0" cellpadding="0" cellspacing="0">
              <tr>
              
              <%
                  int category = GetCategoryId();
              %>
              
              
              <% if ( category == 0 ) { %>              
                <td width="83" align="center" background="/images/top_3.gif" style="padding-top:5px">
					<a href="/Index.aspx" class="a4a">首页</a>
				</td>
			  <% } else { %>
                <td width="83" align="center" valign="middle" style="padding-top:5px">
                    <a href="/Index.aspx" class="a5">首页</a>
				</td>			  			  
			  <% } %>
			  		  
                <td width="15" align="center" valign="middle"><img src="/images/top_6.gif" width="15" height="29" /></td>
                              				
              <% if ( category == (int)Job.Web.Framework.Constants.CategoryType.Company ) { %>    
                <td width="83" align="center" background="/images/top_3.gif" style="padding-top:5px">
					<a href="/Item.aspx?categoryid=10&subjectid=101" class="a4a">关于无忧</a>
				</td>                
              <% } else { %> 
                <td width="83" align="center" valign="middle" style="padding-top:5px">
                    <a href="/Item.aspx?categoryid=10&subjectid=101" class="a5">关于无忧</a>
                </td>
              <% } %>
                
                <td width="15" align="center" valign="middle"><img src="/images/top_6.gif" width="15" height="29" /></td>
                
              <% if ( category == (int)Job.Web.Framework.Constants.CategoryType.Hunter ) { %>    
                <td width="83" align="center" background="/images/top_3.gif" style="padding-top:5px">
					<a href="/Item.aspx?categoryid=11&subjectid=110" class="a4a">猎头专区</a>
				</td>      
              <% } else { %> 
                <td width="83" align="center" valign="middle" style="padding-top:5px">
                    <a href="/Item.aspx?categoryid=11&subjectid=110"  class="a5">猎头专区</a>
                </td>              
              <% } %>
              
                 <td width="15" align="center" valign="middle"><img src="/images/top_6.gif" width="15" height="29" /></td>
              <% if ( category == (int)Job.Web.Framework.Constants.CategoryType.Service ) { %>    
                <td width="83" align="center" background="/images/top_3.gif" style="padding-top:5px">
					<a href="/Item.aspx?categoryid=12&subjectid=120" class="a4a">人事外包</a>
				</td> 
              <% } else { %> 
                <td width="83" align="center" valign="middle" style="padding-top:5px">
                    <a href="/Item.aspx?categoryid=12&subjectid=120" class="a5">人事外包</a>
                </td>              
              <% } %>               
                
                 <td width="15" align="center" valign="middle"><img src="/images/top_6.gif" width="15" height="29" /></td>
              <% if (category == (int)Job.Web.Framework.Constants.CategoryType.Person)
                 { %>    
                 <td width="83" align="center" background="/images/top_3.gif" style="padding-top:5px">
                    <asp:HyperLink ID="hlPerson1" CssClass="a4a" Text="个人求职" runat="server"></asp:HyperLink> 
				</td>    
              <% } else { %>
                <td width="83" align="center" valign="middle" style="padding-top:5px">
                    <a href="/Information.aspx" class="a5"></a>
                    <asp:HyperLink ID="hlPerson2" CssClass="a5" Text="个人求职" runat="server"></asp:HyperLink> 
                </td>              
              <% }  %>
              
                <td width="15" align="center" valign="middle"><img src="/images/top_6.gif" width="15" height="29" /></td>
              <% if (category == (int)Job.Web.Framework.Constants.CategoryType.Job)
                 { %>    
                 <td width="83" align="center" background="/images/top_3.gif" style="padding-top:5px">
                    <asp:HyperLink ID="hlCompany1" CssClass="a4a" Text="企业招聘" runat="server"></asp:HyperLink> 
				</td>    
              <% } else { %>
                <td width="83" align="center" valign="middle" style="padding-top:5px">
                    <asp:HyperLink ID="hlCompany2" CssClass="a5" Text="企业招聘" runat="server"></asp:HyperLink> 
                </td>              
              <% }  %>                
                 <td width="15" align="center" valign="middle">&nbsp;</td>
                <td align="center" valign="middle" style="padding-top:5px">&nbsp;</td>
                 <td width="15" align="center" valign="middle">&nbsp;</td>
                <td align="center" valign="middle" style="padding-top:5px">&nbsp;</td>
              </tr>
            </table>
		   </td>
           <td width="15"><img src="/images/top_2.gif" alt="" width="15" height="29" align="absmiddle" /></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
    <td >&nbsp;</td>
  </tr>
  
  
  
  
  
  <tr>
    <td height="180" valign="top" ><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="180" valign="top" >&nbsp;</td>
      </tr>
    </table></td>
    <td width="90" height="180" valign="top"><table width="990" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="230" height="180" valign="top" bgcolor="f2f6f9"><table width="230" height="173" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="230" height="41" valign="bottom" background="/images/left_1.gif"><table width="230" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="20">&nbsp;</td>
                  <td width="148" height="25" class="text1">职位搜索</td>
                  <td width="35">&nbsp;</td>
                  <td width="43"></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td height="132" bgcolor="f2f6f9"><table width="230" border="0" cellspacing="0" cellpadding="0">            
                <tr>
                  <td width="5" height="28" >&nbsp;</td>
                  <td width="75" valign="middle" align="left">职位名称: </td>
                  <td valign="middle" align="left">
                     <asp:TextBox id="tbPositionName" runat="server" Width="140px"></asp:TextBox>
                  </td>
                  <td width="5"></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td valign="middle" align="left">关 键 字:</td>
                  <td height="28" valign="middle" align="left">
                      <asp:TextBox ID="tbKey" runat="server" Width="140px"></asp:TextBox>
                  </td>
                  <td width="10"></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td valign="middle" align="left">职位年薪:</td>
                  <td height="28" valign="middle" align="left">
                      <asp:DropDownList ID="ddlSalaryItem" runat="server" Width="140px"></asp:DropDownList>
                  </td>
                  <td width="10"></td>
                </tr>				
                <tr>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td height="28" width="70" align="left">
                    <asp:Button ID="btSearch" Text=" 搜索职位 " runat="server" CssClass="btn_2k3" 
                          CausesValidation="false" onclick="btSearch_Click" TabIndex="100" />
                   </td>
                   <td width="10"></td>
                </tr>
                <tr><td colspan="4" height="4px"></td></tr>
                <tr>
                  <td height="25" colspan="4" align="center">
                    个人&nbsp;
                    <a href="/Person/PersonRegister.aspx?categoryid=1">注册</a>|
                    <a href="/Person/PersonLogin.aspx?categoryid=1">登录</a>&nbsp;&nbsp;
                    企业&nbsp;
                    <a href="/Company/CompanyRegister.aspx?categoryid=2">注册</a>|
                    <a href="/Company/CompanyLogin.aspx?categoryid=2">登录</a>
                   </td>
                </tr>                          
               
            </table></td>
          </tr>
        </table></td>
        <td width="761" height="180" align="right" valign="top" bgcolor="d8e1e7"><img src="/images/ad_1.jpg" width="755" height="180" /></td>
      </tr>

    </table></td>
    <td valign="top" ><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="180" valign="top" >&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>
